import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/api/goods/brand/list',
    method: 'post',
    data: query
  })
}

export function info(id) {
  return request({
    url: `/api/goods/brand/info/${id}`,
    method: 'get',
    param: id
  })
}

export function add(brand) {
  return request({
    url: '/api/goods/brand/save',
    method: 'post',
    data: brand
  })
}

export function delMultiple(ids) {
  return request({
    url: '/api/goods/brand/delete',
    method: 'post',
    data: ids
  })
}

export function update(brand) {
  return request({
    url: '/api/goods/brand/update',
    method: 'post',
    data: brand
  })
}
